package com.example.demo1.objects;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ReturnObject0 {
    @Value("123456")
    private String a0;

    // 有它能返回json 字段，字段名为函数get 后面的字符串，首字母小写。这里为a0
    public String getA0() {
        return a0;
    }

    @Override
    public String toString() {
        return "ReturnObject0{" +
                "a0='" + a0 + '\'' +
                '}';
    }
}
